package com.poi.jms;

public class QueueMessageConsumer {

	 private String destName;
	 
	 private MessageProcessor messageProcessor;

	 public void receive(TestMessage message) {
		 this.messageProcessor.process(message.getMessage());
	 }
	 
	public String getDestName() {
		return destName;
	}

	public void setDestName(String destName) {
		this.destName = destName;
	}

	public MessageProcessor getMessageProcessor() {
		return messageProcessor;
	}

	public void setMessageProcessor(MessageProcessor messageProcessor) {
		this.messageProcessor = messageProcessor;
	} 

}
